/*
** main.c for 42sh in /home/guina_b/
** 
** Made by benoit guina
** Login   <guina_b@epitech.net>
** 
** Started on  Fri Jan 01 00:00:00 2010 benoit guina
** Last update Fri Jan 01 00:00:00 2010 benoit guina
*/

#include <stdlib.h>
#include "sh.h"

int main(int exit_status, char **av, char **env)
{
  t_sh sh;

  exit_status = EXIT_FAILURE;
  if (sh_init(&sh, env) == 0)
  {
    exit_status = sh_run(&sh, av[1]);
    sh_free(&sh);
  }
  return (exit_status);
}
